package contact.domain;

import java.util.HashSet;
import java.util.Set;

public class Contact{

	private Long id;
	private String firstName;
	private String lastName;
	private String email;
	private Set<ContactGroup> books;
	private Set<PhoneNumber> profiles;
	private Address address;
	
	public Contact(){
		books = new HashSet<ContactGroup>();
		profiles = new HashSet<PhoneNumber>();
	}

	public Contact(String firstname, String lastname, String email) {
		books = new HashSet<ContactGroup>();
		profiles = new HashSet<PhoneNumber>();
		this.firstName = firstname;
		this.lastName = lastname;
		this.email = email;
	}

	public Set<ContactGroup> getBooks() {
		return books;
	}

	public void setBooks(Set<ContactGroup> b) {
		books = b;	
	}

	public Set<PhoneNumber> getProfiles() {
		return profiles;
	}

	public void setProfiles(Set<PhoneNumber> p) {
		profiles = p;
	}

	public Address getAddress() {
		return address;
	}

	public void setAddress(Address address) {
		this.address = address;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String e) {
		email = e;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String fn) {
		firstName = fn;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String ln) {
		lastName = ln;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	public String toString(){
		return "(" + id + ", " + firstName + ", " + lastName + ", " + email + ")";
	}
	
}
